#ifndef SETTINGS_H
#define SETTINGS_H

#include <QObject>
#include <QFile>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonValue>
#include <QDir>
#define SETTING_PATH "~/.config/"

const QString setting_path = QDir::homePath() + "/.config/dbrowser/";
const QString setting_file = QDir::homePath() + "/.config/dbrowser/main.config";
class Settings : public QObject
{
    Q_OBJECT
public:
    explicit Settings(QObject *parent = nullptr);
    static QJsonObject getObject();
    static bool setValue(QString key,QString value);
    static QString getValue(QString key);
    static bool WSettingFile(QByteArray bty);
private:
    QFile* file;

signals:

public slots:

};

#endif // SETTINGS_H
